package com.abc.tacos.dao;

import com.abc.tacos.bean.Order;
import com.abc.tacos.bean.User;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author Kar
 * @version 1.0
 * @date 2022/4/17 0:20
 */
public interface OrderRepository extends CrudRepository<Order, Long> {
    List<Order> findByUserOrderByPlacedAtDesc(User user, Pageable pageable);
}
